defalut:
	go build -o update_service

clean:
	rm -f update_service *.rpm

install:
	-\cp -r default.ini $(PREFIX)/etc/update_service/default.ini
	-\cp -r update_service $(PREFIX)/usr/bin/update_service
	-\cp -r update_service.service $(PREFIX)/etc/systemd/system/update_service.service

rpm: install
	rpmbuild -bb update_service.spec

#release:rpm
#	ssh root@192.168.0.0 "mkdir -p /var/www/html/release/update_service"
#	scp *.rpm root@192.168.0.0:/var/www/html/release/update_service
